﻿using SaaS.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using XCore.Dependency;
using XCore.Domain;

namespace Web.Admin.Services
{
    public abstract class AdminApplictionServiceBase : ApplicationServiceBase
    {
        /// <summary>
        /// 日志采集
        /// </summary>
        protected AdminLogger Logger { get; }
        /// <summary>
        /// 登录信息
        /// </summary>
        protected AdminSession Session { get; }
        /// <summary>
        /// 上下文对象
        /// </summary>
        protected AdminDbContext ADC { get; }
        public AdminApplictionServiceBase() : base(SlaveSetting.GetConnectionString())
        {
            this.Logger = IocCollection.Resolve<AdminLogger>();
            this.Session = IocCollection.Resolve<AdminSession>();
            this.ADC = IocCollection.Resolve<AdminDbContext>();
        }


    }
}
